import request from '@/utils/request'

// 模组列表
export function getModelApi(pageNum, pageSize,modelName) {
    return request({
        url: '/sys/params/model',
        method: 'get',
        params: { pageNum, pageSize,modelName }
    })
}
// 添加模组
export function addModelApi(data) {
    return request({
        url: '/sys/params/model',
        method: 'post',
        data
    })
}
// 修改模组
export function editModelApi(modelId, data) {
    return request({
        url: `/sys/params/model/${modelId}`,
        method: 'put',
        data
    })
}
// 删除模组
export function delModelApi(modelId) {
    return request({
        url: `/sys/params/model/${modelId}`,
        method: 'delete',
    })
}